    <?php $wordLength = sfConfig::get('app_home_word_length'); ?>
    <?php foreach($articles as $key=>$article1): $article = $article1->getArticle(); ?>
<p><?php echo  intval((($sf_params->get('page')?$sf_params->get('page'):1)-1)*$limit)+intval($key)+1; ?>.
        <?php echo link_to($article->getTitle(), "article", $article); ?> <span>By: <?php echo $article->getUser()->getDisplayName(); ?> - </span>
        <?php echo implode(" ", array_slice(str_word_count($article->getArticleSummary(), 1), 0, $wordLength)); ?>
    </p>
    <p class="bborder">&nbsp;</p>
    <?php endforeach; ?>